package org.suk.dp.iterator;

import java.util.ArrayList;
import java.util.List;

/**
 * Description: 具体聚集类<br/>
 * @version V1.0  2017/6/21 16:06  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public class ConcreteAggregate extends Aggregate {
    private List<Object> items = new ArrayList<Object>();
    private int count;
    @Override
    Iterator createIterator() {
        return new ConcreteIterator(this);
    }

    public int getCount() {
        return items.size();
    }

    public List<Object> getItems() {
        return items;
    }

    public void setItems(List<Object> items) {
        this.items = items;
    }
}
